﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Vms.Web.Services;
using Vms.Web.Models;


namespace Vms.Web.Controllers
{
    public class NavigationController : Controller
    {

        //public NavigationController(INavigationService navigationService)
        //{
        //    this.navigationService = navigationService;
        //}

        private INavigationService navigationService = new NavigationService();

        //VmsWebContext context = new VmsWebContext();
        public ActionResult Display()
        {
            // if (HttpContext.User.IsInRole('Admin'))
            NavigationLinksViewModel model = new NavigationLinksViewModel();
            model.NavigationLinks = navigationService.GetNavigationLinks();
            return View(model);
        }

    }
}
